package com.weiyuwqj.server.mapper;

import com.weiyuwqj.api.model.BasUserSecurity;
import com.weiyuwqj.api.model.vo.SecurityVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;
@Repository
public interface BasUserSecurityMapper extends Mapper<BasUserSecurity> {

    //后台认证列表
    List<SecurityVo> getList(Map map);

    BasUserSecurity getOneByUserId(Integer userId);

    BasUserSecurity getOneByIdCard(String idCard);

    //修改实名信息
    Integer modifyRealnameByUserId(@Param("realname") String realname, @Param("identifyCard") String identifyCard, @Param("userId") Integer userId);

    //更新手势密码
    Integer updatePatternLock(@Param("userId") Integer userId, @Param("newPatternLock") String newPatternLock);

    SecurityVo getUserInfoByUserId(Integer userId);

    List<SecurityVo> getByBirth(Map map);
}